import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:search_people/page/bottom_navigation/logic.dart';

import '../../../../../utils/component/page_state/widgets/empty.dart';
import '../../../../../value/topcolors.dart';
import '../index.dart';

/// hello
class HelloWidget extends GetView<SubscribeController> {
  const HelloWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        final ctr = Get.find<Bottom_navigationLogic>();
        ctr.clickTab(0);
      },
      child: Center(
        child: Column(
          children: [
            EmptyView(),
            Container(
              height: 40.r,
              margin: EdgeInsets.symmetric(horizontal: 35.r),
              alignment: Alignment.center,
              decoration: BoxDecoration(
                  color: TopColors.main_color,
                  borderRadius: BorderRadius.circular(2.r)),
              child: Text(
                '去关注',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 14.sp,
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
